package com.hcw.blog.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hcw.blog.base.enumdata.UserTypeEnum;
import com.hcw.blog.base.po.BasePO;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * 用户
 */
@Data
@TableName("user")
public class UserPO extends BasePO {
    @NotBlank(message = "账号不能为空")
    private String account;//账号

    @NotBlank(message = "密码不能为空")
    private String password;//密码

    @NotBlank(message = "人员类型不能为空")
    private UserTypeEnum type;//人员类型

    @NotBlank(message = "昵称不能为空")
    private String nickname;//昵称

    private String picture;//头像id

    private String introduction;//简介

    private LocalDateTime joinTime;//加入时间

    private String name;//姓名

    private String sex;//性别

    private Integer age;//年龄

    private String nativePlace;//籍贯

    private String phone;//手机

    private String email;//邮箱

    private String address;//地址

}
